#ifndef __THREAD_H__
#define __THREAD_H__

#include "util/util_config.h"
#include <thread>
#include "util/logger.h"
#include "util/timer.h"
#include <vector>

NS_UTIL_BEGIN

namespace Thread
{
	// Threads
	// Create several global objects like logger

	Logger& this_logger();
	Timer& this_timer();

	static double __g_sleep_time = 0.5;
	static std::thread daemon;

	// Start Daemon Thread for logger and timer
	void __g_daemon_for_logger();

	
}

NS_UTIL_END

#endif